public abstract class OMStrategy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected OpponentModel |
model
Reference to the opponent model
|
protected NegotiationSession |
negotiationSession
Reference to the object which holds all information about the negotiation
|
| Constructor and Description |
|---|
OMStrategy() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canUpdateOM() |
abstract BidDetails |
getBid(java.util.List<BidDetails> bidsInRange)
Returns a bid selected using the opponent model from the given
set of similarly preferred bids.
|
BidDetails |
getBid(OutcomeSpace space,
Range range)
Returns a bid selected using the opponent model with a utility
in the given range.
|
BidDetails |
getBid(SortedOutcomeSpace space,
double targetUtility)
Use this method in case no range is specified, but only a target utility.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model)
Initialize method which my be used when the opponent model strategy has no parameters,
or when the default values for these parameters should be used.
|
void |
init(NegotiationSession negotiationSession,
OpponentModel model,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialize method to be used by the BOA framework.
|
void |
setOpponentModel(OpponentModel model) |
protected NegotiationSession negotiationSession
protected OpponentModel model
public void init(NegotiationSession negotiationSession, OpponentModel model, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
negotiationSession - state of the negotiation.model - opponent model to which the opponent model strategy applies.parameters - for the opponent model strategy, for example the maximum update time.java.lang.Exception - thrown when initializing the opponent model strategy fails.public void init(NegotiationSession negotiationSession, OpponentModel model) throws java.lang.Exception
negotiationSession - state of the negotiation.model - opponent model to which the opponent model strategy applies.4java.lang.Exception - when initializing the agent fails.public abstract BidDetails getBid(java.util.List<BidDetails> bidsInRange)
bidsInRange - set of similarly preferred bidspublic BidDetails getBid(OutcomeSpace space, Range range)
space - of all possible outcomesrange - of utilitypublic void setOpponentModel(OpponentModel model)
public BidDetails getBid(SortedOutcomeSpace space, double targetUtility)
space - of all possible outcomestargetUtility - minimum utility topublic abstract boolean canUpdateOM()